/*
 * @Author       : Hejh(3010733382@qq.com)
 * @Version      : V1.0
 * @Date         : 2024-04-26 09:42:28
 * @Description  : 文件上传相关类型
 */

// 文件协商
export interface FileHandSharkReq {
  fileId: string
  chunkIds: string[]
  filename: string
  size: string
  parentId: string[]
}

// 文件上传
export interface FileChunkUploadReq {
  fileId: string
  chunkId: string
  file: any
}

// 文件上传返回信息
export interface FileUploadRes {
  needs: string[]
}

// ====================================== 页面内文件上传类型 ===============================================
export interface UploadTask {
  id: string
  fileId: string
  parentId: string
  filename: string
  percent: string | number
  size: string
  type: number
  isPause: boolean
  random: string
  needs: string[]
  fileInfo: {
    fileId: string
    size: string
    filename: string
    chunks: string[]
  }
}
